function [Y,X,RY,RX] = createVariables (data)
[~,len] = size (data{1}.X);
Y = int32 (zeros (len,len));
X   = int32 (zeros (len,len));
RY = double (zeros (len,len));
RX   = double (zeros (len,len));
